<?php
namespace Admin\Controller;
use Think\Controller;
class Controller{

     public function _initialize(){ 
       session_start();
    $state=session('admin.adminid');
      if (!session('?admin')&& session('admins.state<1'))
        {
           $this->error('无权限',U('Login/login'));
             exit();
                     
      }
    }
}